package com.system.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "lg.wxpay")
@PropertySource(value = "classpath:/lgpay.properties")
public class WXConfig {

	public static String APP_ID; // = "wx6476870aff513ed1";//"APP_ID";//"wx6476870aff513ed1";//微信开发平台应用ID(公众号ID)
	public static String MCH_ID; // ="1492063122";// "MCH_ID";//"1492063122";//商户号(商户号ID)
	public static String API_KEY; // = "5EBD8CDC6A9D734A5737DB30E8B08359";//"API_KEY";//"5EBD8CDC6A9D734A5737DB30E8B08359";//API key(商户号里面的)
	public static String CREATE_IP;// ="";// "CREATE_IP";//发起支付的ip
	public static String NOTIFY_URL;// = "http://star.lgsteel.cn/login/getWXPay";//"http://ahutcb.free.ngrok.cc/LgSteel/login/getWXPay.html";//"http://www.example.com/wxpay/notify";//"NOTIFY_URL";//回调地址
	public static String UFDODER_URL;// ="https://api.mch.weixin.qq.com/pay/unifiedorder";// "UFDODER_URL";//"https://api.mch.weixin.qq.com/pay/unifiedorder";//微信统一下单接口
	public static String APP_SECRET;// ="";// "APP_SECRET";//应用对应的凭证(在公众号里面)
	public static String XAPP_ID;
	public static String XMCH_ID;
	public static String XAPI_KEY;
	public static String XAPP_SECRET;

	public String getAPP_ID() {
		return APP_ID;
	}

	public void setAPP_ID(String APP_ID) {
		WXConfig.APP_ID = APP_ID;
	}

	public String getMCH_ID() {
		return MCH_ID;
	}

	public void setMCH_ID(String MCH_ID) {
		WXConfig.MCH_ID = MCH_ID;
	}

	public String getAPI_KEY() {
		return API_KEY;
	}

	public void setAPI_KEY(String API_KEY) {
		WXConfig.API_KEY = API_KEY;
	}

	public String getCREATE_IP() {
		return CREATE_IP;
	}

	public void setCREATE_IP(String CREATE_IP) {
		WXConfig.CREATE_IP = CREATE_IP;
	}

	public String getNOTIFY_URL() {
		return NOTIFY_URL;
	}

	public void setNOTIFY_URL(String NOTIFY_URL) {
		WXConfig.NOTIFY_URL = NOTIFY_URL;
	}

	public String getUFDODER_URL() {
		return UFDODER_URL;
	}

	public void setUFDODER_URL(String UFDODER_URL) {
		WXConfig.UFDODER_URL = UFDODER_URL;
	}

	public String getAPP_SECRET() {
		return APP_SECRET;
	}

	public void setAPP_SECRET(String APP_SECRET) {
		WXConfig.APP_SECRET = APP_SECRET;
	}

	public String getXAPP_ID() {
		return XAPP_ID;
	}

	public void setXAPP_ID(String xAPP_ID) {
		WXConfig.XAPP_ID = xAPP_ID;
	}

	public String getXMCH_ID() {
		return XMCH_ID;
	}

	public void setXMCH_ID(String xMCH_ID) {
		WXConfig.XMCH_ID = xMCH_ID;
	}

	public String getXAPI_KEY() {
		return XAPI_KEY;
	}

	public void setXAPI_KEY(String xAPI_KEY) {
		WXConfig.XAPI_KEY = xAPI_KEY;
	}

	public String getXAPP_SECRET() {
		return XAPP_SECRET;
	}

	public void setXAPP_SECRET(String xAPP_SECRET) {
		WXConfig.XAPP_SECRET = xAPP_SECRET;
	}

}
